using System;
using System.Collections.Generic;
using System.Text;

namespace Acms.AcmsControls
{
    [Serializable]
    [System.Xml.Serialization.XmlType("Flash")]
    public class FlashContentControlProperties : BaseContentControlProperties
    {
        private int resourceId;
        [System.Xml.Serialization.XmlAttribute]
        public int ResourceId
        {
            get { return resourceId; }
            set { resourceId = value; }
        }

        public bool HasResource()
        {
            return resourceId > 0;
        }

        private int width;
        [System.Xml.Serialization.XmlAttribute]
        public int Width
        {
            get { return width; }
            set { width = value; }
        }

        private int height;
        [System.Xml.Serialization.XmlAttribute]
        public int Height
        {
            get { return height; }
            set { height = value; }
        }

        private string minVersion;
        [System.Xml.Serialization.XmlAttribute]
        public string MinVersion
        {
            get { return minVersion; }
            set { minVersion = value; }
        }
    }
}
